package com.imooc.security.browser.config;


import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class BrowserWebConfig extends WebMvcConfigurationSupport {
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {

        //addResourceHandler 表示在resources/html目录下的所有资源会被解析为以下的路径/html/
        registry.addResourceHandler("/html/**")
                .addResourceLocations("classpath:/html/");
        super.addResourceHandlers(registry);
    }

}
